using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class CreateWorkflowFromTemplateRequest : OrganizationRequest
	{
		public string WorkflowName
		{
			get
			{
				if (base.Parameters.Contains("WorkflowName"))
				{
					return (string)base.Parameters["WorkflowName"];
				}
				return null;
			}
			set
			{
				base.Parameters["WorkflowName"] = value;
			}
		}
		public Guid WorkflowTemplateId
		{
			get
			{
				if (base.Parameters.Contains("WorkflowTemplateId"))
				{
					return (Guid)base.Parameters["WorkflowTemplateId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["WorkflowTemplateId"] = value;
			}
		}
		public CreateWorkflowFromTemplateRequest()
		{
			base.RequestName = "CreateWorkflowFromTemplate";
			this.WorkflowName = null;
			this.WorkflowTemplateId = default(Guid);
		}
	}
}
